import instance from '@/utils/axios';

export const loginAPI = (data: LoginData) => {
  return instance.post('/admin/login', data);
};

interface LoginData {
  account: string;
  password: string;
}

export const getUserListAPI = (data: { page: number; page_szie: number }) => {
  return instance.get('/admin/list', { params: data });
};
